// CardReadDlg.h : header file
//
#include "Common.h"
#include "SocketClient.h"
#if !defined(AFX_CARDREADDLG_H__FD44C825_9F2C_4FA3_8BED_4AD5B082B99A__INCLUDED_)
#define AFX_CARDREADDLG_H__FD44C825_9F2C_4FA3_8BED_4AD5B082B99A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCardReadDlg dialog


class CCardReadDlg : public CDialog
{
// Construction
public:
	CSocketClient *m_Socket;
	void DisplayCardInfo(void *arg);

	CCardReadDlg(CWnd* pParent = NULL);	// standard constructor

// Dialog Data
	//{{AFX_DATA(CCardReadDlg)
	enum { IDD = IDD_CARDREAD_DIALOG };
	CStatic	m_picture;
	CIPAddressCtrl	m_ipAddr;
	double	m_EditFee;
	CString	m_EditId;
	double	m_EditMoney;
	CString	m_EditName;
	CString	m_EditNumber;
	double	m_EditPay;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCardReadDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCardReadDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	virtual void OnOK();
	afx_msg void OnButtonConnect();
	afx_msg void OnButtonDisconnect();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonPay();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	afx_msg void OnStnClickedStaticPicture();
	afx_msg void OnEnChangeEditName();
	afx_msg void OnIpnFieldchangedIpaddress(NMHDR *pNMHDR, LRESULT *pResult);
	afx_msg void OnEnChangeEditPay();
	afx_msg void OnEnChangeEditMoney();
	afx_msg void OnBnClickedResetButton();
	afx_msg void OnBnClickedButtonFee();
	afx_msg void OnClose();
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CARDREADDLG_H__FD44C825_9F2C_4FA3_8BED_4AD5B082B99A__INCLUDED_)
